const UPDATE_OPERATION = (state, payload) => {
    state.opers = [...payload];
}

const INSERT_OPERATION=(state,payload)=>{
    console.log(payload);
    state.opers.push(payload);
    
}

// 删除
const REMOVE_OPERATION = (state, payload) => {
    state.opers.splice(payload, 1);
}

export default{
    UPDATE_OPERATION,
    INSERT_OPERATION,
    REMOVE_OPERATION,
}